<h1>Lista de Classificação</h1>

<h2><?php echo $congress['Congress']['name'] ?></h2>

<h3>Avaliação detalhada</h3>

<?php if (!empty($status)): ?>
    <p>Este congresso está em andamento. As avaliações ainda não foram encerradas.</p>
    <p>Fim do período de avaliação em: <strong><?php echo date('d/m/Y', strtotime($congress['Congress']['deadline_evaluation'])) ?></strong></p>
    <p>Se você submeteu artigos para este congresso receberá um e-mail de aviso nesta data.</p>
<?php else: ?>
        <div class="congresses view">
            <dl>
        <?php $i = 0 ?>
        <?php $class = 'class="altrow"'; ?>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Artigo'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['name']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Área de Conhecimento'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Area']['name']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Descrição da Área'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Area']['description']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Abstract'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['abstract_pt']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Abstract em inglês'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['abstract_en']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Adicionado em'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo date('d/m/Y H:i P', strtotime($article['Article']['created'])); ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Modificado em'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo date('d/m/Y H:i P', strtotime($article['Article']['modified'])); ?>&nbsp;</dd>
    </dl>
    <br/><br/><br/>
    <dl>
        <?php $i = 0 ?>
        <?php $class = 'class="altrow"'; ?>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Nota Final'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['final_grade']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Status'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>>
            <?php
            switch ($article['Article']['status']):
                case 'A':
                    echo 'Aprovado';
                    break;
                case 'R':
                    echo 'Reprovado';
                    break;
                case 'E':
                    echo 'Em Espera';
                    break;
            endswitch;
            ?>
            &nbsp;
        </dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Nota Final Originalidade'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['final_originality_grade']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Nota Final Relevância'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['final_relevance_grade']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Nota Final Texto'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['final_text_grade']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Nota Final Geral'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $article['Article']['final_general_grade']; ?>&nbsp;</dd>
    </dl>
</div>
<div class="actions">
    <ul>
        <li><?php echo $html->link(__('Lista de Classificação', true), array('action' => 'finalList', $congress['Congress']['id'])); ?></li>
    </ul>
</div>

<?php endif; ?>